home *** CD-ROM | disk | FTP | other *** search
- Path: jake.esu.edu!pan7064
- From: pan7064@kutztown.edu (Jian Pan)
- Newsgroups: comp.lang.c++
- Subject: help: template class, #include myclass.cpp?
- Date: 1 Mar 1996 15:45:55 GMT
- Organization: Kutztown University of Pennsylvania, USA
- Message-ID: <4h763j$2dv@jake.esu.edu>
- NNTP-Posting-Host: atlantic.kutztown.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- when I declare a template class in a header file myclass.h and define the
- class (implementation) in a .cpp file myclass.cpp, in my application
- if I only include the .h file, there will be link error, "unresolved
- external symbol", if I include the .cpp file, everything is OK.
- If in the .h file is non template class, without including the .cpp file
- there is no problem.
-
- What is my problem? I am using VC++ 4.0. Using Borland C++ 4.5, I met the
- same problem.
-
- Any help will be greatly appreciated.
-
- Jian
-
- pan7064@kutztown.edu
-
-
-